<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name='format-detection' content='telephone=no' />
<title>人车人</title><link rel="icon" href="/assets/img/titleico.ico" type="image/x-icon">
<link rel="stylesheet" href="/assets/css/iconfont/iconfont.css" />
<link rel="stylesheet" href="/assets/css/common.css" />
<style>
body {
	background-color: #fff;
}

.banner {
	padding: 2% 0 10%;
}

.banner .warp {
	width: 100%;
	overflow: hidden;
	position: relative;
	background-color: #fff;
}

.banner .warp .tip {
	width: 66px;
	height: 2.8rem;
	line-height: 2.8rem;
	color: #fff;
	text-align: center;
	position: absolute;
	left: 0;
	top: 0;
	background-color: #ff4040;
	font-size: 1.6rem;
	z-index: 1;
}

.banner .warp ul.box {
	width: 1000%;
	height: 100%;
	overflow: hidden;
}

.banner .warp ul.move {
	transition: transform .3s ease;
}

.banner .warp ul.box li {
	float: left;
	text-align: center;
}

.banner .warp ul.box li img {
	max-width: 100%;
}

.banner .warp ul.page {
	position: absolute;
	bottom: 2%;
	right: 5%;
	color: #ccc;
}

.banner .area h3 {
	padding: 6% 0;
	color: #1a1a1a;
	font-size: 1.6rem;
}

.banner .area p {
	color: #202020;
}

section {
	padding-bottom: 26%;
}

section .area {
	padding-bottom: 4%;
}

section .logobox {
	padding: 4% 0;
	position: relative;
}

section .logobox p {
	color: #ff6933;
	padding: 4% 0;
	font-size: 1.6rem;
}

section .logobox p span.price {
	font-size: 1.8rem;
}

section .logobox p span.f {
	color: #d9d9d9;
}

section .logobox i {
	position: absolute;
	top: 40%;
	right: 0;
	font-size: 2.6rem;
	color: #ff571a;
	font-weight: bold;
}

section .info {
	padding: 4% 0;
}

section .info .title {
	height: 4rem;
	line-height: 4rem;
}

section .info .title p {
	font-size: 2rem;
	font-weight: 600;
}

section .info .title a {
	padding: 0 .8rem;
	border-radius: 6px;
	border: 1px solid #ff571a;
	color: #ff571a;
	line-height: 3rem;
	margin-top: 4px;
}

section .info .pos {
	padding: 6% 0 2%;
	height: 30px;
	line-height: 30px;
	color: #666;
	font-size: 1.3rem;
}

section .firtit {
	height: 4rem;
	line-height: 4rem;
}

section .info .pos i {
	color: #ff571a;
	font-size: 2rem;
}

section .msg .title p {
	font-size: 2rem;
	color: #1a1a1a;
}

section .msg .title a {
	color: #8b8b8b;
	font-size: 1.6rem;
}

section .msg .title a i {
	color: #d3d3d3;
}

section .msg ul {
	padding: 4% 0;
	font-size: 1.8rem;
}

section .msg ul li {
	padding-bottom: 4%;
	overflow: hidden;
	line-height: 2.4rem;
}

section .msg ul li:last-child {
	padding-bottom: 0;
}

section .msg ul li .t {
	width: 36%;
	color: #666;
}

section .msg ul li .alt {
	width: 64%;
	color: #333;
	text-align: justify;
}

section .appearance .title {
	padding: 0 5%;
	background-color: #fafbfc;
}

section .appearance .t_bor:before {
	background-color: #cfd6e6;
}

section .appearance .b_bor:after {
	background-color: #cfd6e6;
}

section .appearance .title p {
	font-weight: bold;
	color: #2a4b90;
}

section .appearance .title p span {
	font-weight: normal;
	color: #666;
}

section .appearance .title a {
	color: #666;
}

section .appearance .title a i {
	font-size: 2rem;
	vertical-align: sub;
}

section .appearance .list {
	width: 90%;
	padding-top: 5%;
	overflow: hidden;
	margin: 0 auto;
}

section .appearance ul li {
	float: left;
	width: 47%;
	margin: 0 6% 6% 0;
}

section .appearance ul li:nth-child(2n) {
	margin-right: 0%;
}

section .appearance ul li p {
	color: #2a4b90;
	padding: 4%;
}
</style>
<script src="/assets/js/jquery-3.1.1.min.js"></script>
</head>
<body>
	<!-- header start -->
	#@tabHead("2016款&nbsp;自由光",true)
	<!-- end header -->

	<div class="banner b_bor">
		<div class="warp">
			<div class="tip">新车</div>
			<ul class="box move" id="banner">
				<li><img src="/assets/img/banner1.jpg" title="自由光" alt="自由光" />
				</li>
				<li><img src="/assets/img/banner2.jpg" title="自由光" alt="自由光" />
				</li>
				<li><img src="/assets/img/banner3.jpg" title="自由光" alt="自由光" />
				</li>
				<li><img src="/assets/img/banner4.jpg" title="自由光" alt="自由光" />
				</li>
				<li><img src="/assets/img/banner5.jpg" title="自由光" alt="自由光" />
				</li>
			</ul>
			<ul class="page">
				<li class="fl" id="nowpage">1</li>
				<li class="fl">/</li>
				<li class="fl" id="allpage"></li>
			</ul>
		</div>
		<div class="area">
			<h3>2016款&nbsp;自由光&nbsp;2.4L&nbsp;领先版+智能包</h3>
			<p>厂商指导价&nbsp;23.57万起</p>
		</div>
	</div>

	<section>
		<div class="area">
			<div class="logobox">
				<img src="/assets/img/tgclogo.png" width="100" title="人车人"
					alt="人车人" />
				<p>
					首付<span class="price">2.35</span>万&nbsp;<span class="f">|</span>&nbsp;月供3698元
				</p>
				<i class="iconfont">&#xe61d;</i>
			</div>
			<div class="info">
				<div class="title">
					<p class="fl">人车人</p>
					<a class="fr" href="javascript:;">进入官网</a>
				</div>
				<div class="pos">
					<p class="fl">昆明市经济开发区第三城财富中心A2栋1501室</p>
					<i class="iconfont fr">&#xe7f4;</i>
				</div>
			</div>
			<div class="msg">
				<div class="title firtit">
					<p class="fl">车辆信息</p>
					<a class="fr" href="javascript:;">更多配置参数<i class="iconfont">&#xe61d;</i></a>
				</div>
				<ul>
					<li>
						<p class="t fl">供油系统</p>
						<p class="alt fl">汽油</p>
					</li>
					<li>
						<p class="t fl">变速箱</p>
						<p class="alt fl">手自一体变速器</p>
					</li>
					<li>
						<p class="t fl">排量</p>
						<p class="alt fl">2.4</p>
					</li>
					<li>
						<p class="t fl">车体形式</p>
						<p class="alt fl">SUV</p>
					</li>
					<li>
						<p class="t fl">进气方式</p>
						<p class="alt fl">自然</p>
					</li>
					<li>
						<p class="t fl">两亮配置</p>
						<p class="alt fl">无钥匙进入系统、发动机停启技术、全景天窗、真皮座椅、定速巡航、胎压监测装置、GPS导航系统、倒车视频影像、无钥匙启动系统、膝部气囊</p>
					</li>
				</ul>
			</div>
		</div>
		<div class="appearance">
			<div class="title firtit t_bor b_bor">
				<p class="fl">
					车身外观&nbsp;&nbsp;<span>（5张）</span>
				</p>
				<a class="fr" href="javascript:;">更多<i class="iconfont">&#xe696;</i></a>
			</div>
			<div class="list">
				<ul>
					<li><img src="images/appearance_1.jpg" width="100%" alt="自由光"
						title="自由光" />
						<p>2016款&nbsp;2.0L&nbsp;领先版</p></li>
					<li><img src="images/appearance_2.jpg" width="100%" alt="自由光"
						title="自由光" />
						<p>2016款&nbsp;2.0L&nbsp;领先版</p></li>
					<li><img src="images/appearance_3.jpg" width="100%" alt="自由光"
						title="自由光" />
						<p>2016款&nbsp;2.0L&nbsp;领先版</p></li>
					<li><img src="images/appearance_4.jpg" width="100%" alt="自由光"
						title="自由光" />
						<p>2016款&nbsp;2.0L&nbsp;领先版</p></li>
					<li><img src="images/appearance_5.jpg" width="100%" alt="自由光"
						title="自由光" />
						<p>2016款&nbsp;2.0L&nbsp;领先版</p></li>
				</ul>
			</div>
		</div>
		<div class="appearance">
			<div class="title firtit t_bor b_bor">
				<p class="fl">
					中控方向盘&nbsp;&nbsp;<span>（5张）</span>
				</p>
				<a class="fr" href="javascript:;">更多<i class="iconfont">&#xe696;</i></a>
			</div>
			<div class="list">
				<ul>
					<li><img src="images/appearance_1.jpg" width="100%" alt="自由光"
						title="自由光" />
						<p>2016款&nbsp;2.0L&nbsp;领先版</p></li>
					<li><img src="images/appearance_2.jpg" width="100%" alt="自由光"
						title="自由光" />
						<p>2016款&nbsp;2.0L&nbsp;领先版</p></li>
					<li><img src="images/appearance_3.jpg" width="100%" alt="自由光"
						title="自由光" />
						<p>2016款&nbsp;2.0L&nbsp;领先版</p></li>
					<li><img src="images/appearance_4.jpg" width="100%" alt="自由光"
						title="自由光" />
						<p>2016款&nbsp;2.0L&nbsp;领先版</p></li>
					<li><img src="images/appearance_5.jpg" width="100%" alt="自由光"
						title="自由光" />
						<p>2016款&nbsp;2.0L&nbsp;领先版</p></li>
					<li><img src="images/appearance_5.jpg" width="100%" alt="自由光"
						title="自由光" />
						<p>2016款&nbsp;2.0L&nbsp;领先版</p></li>
				</ul>
			</div>
		</div>
		<div class="appearance">
			<div class="title firtit t_bor b_bor">
				<p class="fl">
					车身座椅&nbsp;&nbsp;<span>（5张）</span>
				</p>
				<a class="fr" href="javascript:;">更多<i class="iconfont">&#xe696;</i></a>
			</div>
			<div class="list">
				<ul>
					<li><img src="images/appearance_1.jpg" width="100%" alt="自由光"
						title="自由光" />
						<p>2016款&nbsp;2.0L&nbsp;领先版</p></li>
					<li><img src="images/appearance_2.jpg" width="100%" alt="自由光"
						title="自由光" />
						<p>2016款&nbsp;2.0L&nbsp;领先版</p></li>
					<li><img src="images/appearance_3.jpg" width="100%" alt="自由光"
						title="自由光" />
						<p>2016款&nbsp;2.0L&nbsp;领先版</p></li>
					<li><img src="images/appearance_4.jpg" width="100%" alt="自由光"
						title="自由光" />
						<p>2016款&nbsp;2.0L&nbsp;领先版</p></li>
					<li><img src="images/appearance_5.jpg" width="100%" alt="自由光"
						title="自由光" />
						<p>2016款&nbsp;2.0L&nbsp;领先版</p></li>
				</ul>
			</div>
		</div>
	</section>

	<!-- footer start -->
	#--#@footer(1)--#
	<!-- end footer -->

	<script src="/assets/js/fastclick.min.js"></script>
	<script src="/assets/js/xxsg.js"></script>
	<script>

		$(function(){
			var $window_width = window.innerWidth,
				$banner = $('#banner'),
				$lilen = $banner.children().length,
				$index = 0,
				warp = $banner.parent();

 			//屏幕发生转向处理
 			function screenMove(width){
 				$window_width = width;
				$banner.children('li').width($window_width);
				$banner[0].style.transform = "translate3d(-"+ $index * $window_width +"px,0,0)";
 			};
		
			//判断竖屏横屏切换做处理
			if(window["onorientationchange"] != undefined){					
				var SCREENWIDTH = screen.width,//设备屏幕宽度
					SCREENHEIGHT = screen.height;//设备屏幕高度
				window.addEventListener("orientationchange",function(){
					$window_width = (orientation == 0?SCREENWIDTH:SCREENHEIGHT);
					screenMove($window_width);
				});
				
			}else{
				window.addEventListener("resize",function(){
					$window_width = window.innerWidth;
					screenMove($window_width);
				});
			}	
						
			/* banner start */
			$('#allpage').text($lilen);

			$banner.children('li').width($window_width);

			var sx = 0,//开始位置
				mx = 0,//移动位置
				lx = 0;//记录上一次位置
				pos = "",//左或右
				stime = 0,
				etime = 0;
			warp[0].addEventListener('touchstart',function(e){	
				stime = new Date().getTime();		
				var sevent = e.touches[0];
				sx = lx = sevent.pageX;
				mx = 0;	
			})
			warp[0].addEventListener('touchmove',function(e){
				e.preventDefault();
				$banner.removeClass('move');
				var mevent = e.touches[0];
				mx = mevent.pageX - sx;
				var x = $index * -$window_width + mx;
				if(lx > mevent.pageX){//左
					pos = "l";
				}else{
					pos = "r";
				}
				$banner[0].style.transform = "translate3d("+ x +"px,0,0)";

				lx = mevent.pageX;
				
			});
			warp[0].addEventListener('touchend',function(e){
				etime = new Date().getTime();
				$banner.addClass('move');
				if(etime - stime <= 300 && Math.abs(mx) >= 50){
					if(pos == "l"){
						$index++;
						if($index >= $lilen){
							$index = $lilen - 1;
						}
					}else{
						$index--;
						if($index <= 0){
							$index = 0;
						}
					}	
				}else{			
					if(Math.abs(mx) >= $window_width / 3){//滑动距离三分之一
						if(pos == "l"){
							$index++;
							if($index >= $lilen){
								$index = $lilen - 1;
							}
						}else{
							$index--;
							if($index <= 0){
								$index = 0;
							}
						}	
						console.log(pos)			
					}
				}					
				$('#nowpage').text($index + 1);
				$banner[0].style.transform = "translate3d(-"+ $index * $window_width +"px,0,0)";			
			});	
		});
		
	</script>
</body>
</html>